/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package caintra.Sapra.Model;

/**
 *
 * @author cobain
 */
public class Abono {

    private String comentarios;
    private int usuarioId;
    private int fk_empresaId;
    private int fk_periodoId;
    private Integer abono_empresaId;
    private double cantidad;

    public Abono(){
    }

    public void setComentario(String comentario){
       this.comentarios=comentario;
    }

    public void setUsuarioId(int usuario){
        this.usuarioId=usuario;
    }

    public void setfk_empresaId(int empid){
        this.fk_empresaId=empid;
    }

    public void setfk_periodo(int perid){
        this.fk_periodoId=perid;
    }

    public void setAbonoId(Integer abonoid){
        this.abono_empresaId=abonoid;
    }

    public void setCantidad(double cant){
        this.cantidad=cant;
    }

    public String getComentario(){
        return comentarios;
    }

    public int getUsuarioId(){
        return this.usuarioId;
    }

    public int getEmpresaId(){
        return this.fk_empresaId;
    }

    public int getPeriodo(){
        return this.fk_periodoId;
    }

    public int getAbonoId(){
        return this.abono_empresaId;
    }

    public double getCantidad(){
        return this.cantidad;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (abono_empresaId != null ? abono_empresaId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Abono)) {
            return false;
        }
        Abono other = (Abono) object;
        if ((this.abono_empresaId == null && other.abono_empresaId != null) || (this.abono_empresaId != null && !this.abono_empresaId.equals(other.abono_empresaId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "" + abono_empresaId + "";
    }

}
